package com.buaa.pm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.buaa.pm.enumeration.ProjectStatus;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("pm_project")
public class Project {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    private String name;

    private String introduction;


    private ProjectStatus status;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

}
